@extends('Admin.layout.layout')
@section('title')
   <title>lamp178 添加</title>
@endsection
@section('con')
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">用户添加</h1>
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <!-- /.row -->
    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    Basic Form Elements
                </div>
                <div class="panel-body">
                    <div class="row">
                        @if (count($errors) > 0)
                            <div class="alert alert-danger"> 
                                <ul>
                                    @foreach ($errors->all() as $error)
                                        <li>{{ $error }}</li>
                                    @endforeach
                                </ul>        
                            </div> 
                        @endif      
                        <div class="col-lg-6 col-lg-offset-3">
                            <form role="form" action="{{url('admin/user/insert')}}" method="post" enctype="multipart/form-data">
                                <div class="form-group">
                                    <label>用户名</label>
                                    <input class="form-control" type="text" name="name" value="{{old('name')}}">
                                </div>
                                <div class="form-group">
                                    <label>密  码</label>
                                    <input class="form-control" type="password" name="password" value="{{old('password')}}">
                                </div>
                                <div class="form-group">
                                    <label>Email</label>
                                    <input class="form-control" type="email" name="email" value="{{old('email')}}">
                                </div>
                                <div class="form-group">
                                    <label>用户头像</label>
                                    <input type="file" name="pic">
                                </div>
                                {{csrf_field()}}
                                <button type="submit" class="btn btn-success">提交</button>
                                <button type="reset" class="btn btn-primary">重置</button>
                            </form>
                        </div>
                    </div>
                    <!-- /.row (nested) -->
                </div>
                <!-- /.panel-body -->
            </div>
            <!-- /.panel -->
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <!-- /.row -->
    <div class="row">
        
        <!-- /.col-lg-8 -->
        
        <!-- /.col-lg-4 -->
    </div>  
@endsection